<template>
  <div class="listss banxin">
    <ul class="tanxin">
      <li v-for="(item, index) in AllInfo" :key="index">
        <img :src="item.coverImgUrl" alt="" />
        <i></i>
        <div class="hiekuai">
          <span class="bfimg"></span>
          <span class="zjwenzi">{{ item.playCount }}</span>

          <span class="ejimg"></span>
        </div>
        <p>{{ item.name }}</p>
      </li>
    </ul>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  props: ["AllInfo"],
};
</script>
 
<style lang = "less" scoped>
@import "@/assets/base.less";

.listss {
  padding-bottom: 60px;
  ul {
    width: 1000px;
    margin: 0 auto;
    justify-content: space-between;
    flex-wrap: wrap;

    li {
      position: relative;
      width: 140px;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 4;
      overflow: hidden;
      margin-left: 30px;
      margin-right: 30px;
      margin-top: 30px;
      img {
        width: 140px;
        height: 140px;
      }
      p {
        cursor: pointer;
        &:hover {
          text-decoration: underline;
        }
      }
      .hiekuai {
        width: 140px;
        position: absolute;
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid #000;
        padding-left: 5px;
        color: #ccc;
        font-size: 12px;
        top: 118px;
        line-height: 20px;
        display: flex;
        .bfimg {
          display: block;
          width: 20px;

          height: 20px;
          background-image: url("@/assets/images/iconall.png");
          background-position: 0 0;
          margin-top: 3px;
        }
        .zjwenzi {
          width: 100px;
        }
        .ejimg {
          display: block;
          width: 20px;
          height: 20px;
          background-image: url("@/assets/images/iconall.png");
          background-position: 0 -20px;
          margin-right: 5px;
        }
      }
    }
  }
}
</style>